﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.NoSql.Core.Mongo
{
    /// <summary>
    /// 日志属性
    /// </summary>
    public class MetaLog : MetaBase
    {

    }

    public class MetaFlies
    {
        public string pkvalue { get; set; } = null;// 关联主键
        public string tablename { get; set; } = null;// 关联表对象
        public Stream file { get; set; }//文件流
        public MetaFlie metaflie { get; set; }//文件属性
    }
    /// <summary>
    /// 文件属性
    /// </summary>
    public class MetaFlie : MetaBase
    {
        
        public string filetype { get; set; }//文件详细类型
        public string suffix { get; set; }//后缀名
        public string autonym { get; set; }//文件本名

    }
    /// <summary>
    /// 基础属性
    /// </summary>
    public class MetaBase
    {
        public string dbtype { get; set; }//数据库类型
        public string dbuser { get; set; }//数据库用户
        //public string dbtable { get; set; }//目标表名
        public string source { get; set; }//目标来源
        public string update { get; set; }//上传时间
        public string subjoin { get; set; }//增补信息
    }
    public class FileIDs
    {
        public string mainid { get; set; }
        public string subid { get; set; }
    }

    public class InFiles
    {
        public string options { get; set; }
        public IFormFile file { get; set; }
    }
}
